﻿<UserControl  x:Class="SilverlightClientEditor.View.Components.MapPropertiesEditorUC"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="420" d:DesignWidth="200">
    <!-- 
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" 
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  
    -->
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <!--toolkit:Accordion SelectionMode="ZeroOrMore"  HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"-->
        <!--toolkit:AccordionItem Header="Map Properties" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"-->
        <!--toolkit:AccordionItem.Content-->
        <Grid Name="MapProperties" Grid.Column="0" Grid.Row="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>

                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="1*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <TextBlock Grid.Row="0" Grid.Column="0" Text="Width"></TextBlock>
            <TextBox Name="WidthTextBox" Grid.Row="0" Grid.Column="1"></TextBox>

            <TextBlock Grid.Row="1" Grid.Column="0" Text="Height"></TextBlock>
            <TextBox Name="HeightTextBox" Grid.Row="1" Grid.Column="1" ></TextBox>

            <TextBlock Text="MapType:" Grid.Row="6" Grid.Column="0" />
            <ComboBox x:Name="MapTypeComboBox" Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="2"></ComboBox>
            <TextBlock Text="TileType:" Grid.Row="8" Grid.Column="0" />
            <ComboBox x:Name="TileTypeComboBox" Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="2"></ComboBox>

            <Button Name="SetButton" Content="Set" Grid.Row="10" Grid.Column="1" Click="Button_Click"></Button>

        </Grid>
        <!--/toolkit:AccordionItem.Content-->
        <!--/toolkit:AccordionItem-->
        <!--toolkit:AccordionItem Header="Map Heights"  HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"-->
        <!--toolkit:AccordionItem.Content-->
        <Grid Grid.Column="0" Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="1*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <TextBlock Text="Change Tile:" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"/>
            <TextBlock Text="Height Diff" Grid.Row="1" Grid.Column="0"/>
            <TextBox x:Name="HeightDiffTextBox" Text="0,1" Grid.Row="1" Grid.Column="1"/>
            <Button Name="UpButton" Content="Up" Grid.Row="2" Grid.Column="0" Click="Button_Click"></Button>
            <Button Name="DownButton" Content="Down" Grid.Row="2" Grid.Column="1" Click="Button_Click"></Button>

            <TextBlock Text="Generator:" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"/>
            <TextBlock Text="Frequency" Grid.Row="4" Grid.Column="0"/>
            <TextBox x:Name="FrequencyTextBox" Text="" Grid.Row="4" Grid.Column="1"/>

            <TextBlock Text="Amplitude" Grid.Row="5" Grid.Column="0" />
            <TextBox x:Name="AmplitudeTextBox" Text="" Grid.Row="5" Grid.Column="1" />

            <TextBlock Text="Persistence" Grid.Row="6" Grid.Column="0" />
            <TextBox x:Name="PersistenceTextBox" Text="" Grid.Row="6" Grid.Column="1" />

            <TextBlock Text="Octaves" Grid.Row="7" Grid.Column="0" />
            <TextBox x:Name="OctavesTextBox" Text="" Grid.Row="7" Grid.Column="1" />

            <TextBlock Text="Seed" Grid.Row="8" Grid.Column="0" />
            <TextBox x:Name="SeedTextBox" Text="" Grid.Row="8" Grid.Column="1" />

            <TextBlock Text="Origin:" Grid.Row="9" Grid.Column="0" />
            <TextBlock Text="x" Grid.Row="10" Grid.Column="0" />
            <TextBox x:Name="OriginXTextBox" Text="" Grid.Row="10" Grid.Column="1" />
            <TextBlock Text="y" Grid.Row="11" Grid.Column="0" />
            <TextBox x:Name="OriginYTextBox" Text="" Grid.Row="11" Grid.Column="1" />
            <Button x:Name="GenerateButton" Content="Generate" Click="Button_Click" Grid.Row="13" Grid.Column="1" />

        </Grid>
        <!--/toolkit:AccordionItem.Content-->
        <!--/toolkit:AccordionItem-->
        <!--/toolkit:Accordion-->
    </Grid>
</UserControl>